#include "Engine.h"

namespace TSS
{
	IEvent::IEvent()
	{
		id = 0;
	}

	TimerEvent::TimerEvent(int tid)
	{
		id = EVENT_TIMER;
		timerid = tid;
	}


	KeyPressEvent::KeyPressEvent(int key)
	{
		id = EVENT_KEYPRESS;
		keycode = key;
	}

	KeyReleaseEvent::KeyReleaseEvent(int key)
	{
		id = EVENT_KEYRELEASE;
		keycode = key;
	}

	MouseClickEvent::MouseClickEvent(int btn)
	{
		id = EVENT_MOUSECLICK;
		button = btn;
	}

	MouseMotionEvent::MouseMotionEvent( int dx, int dy )
	{
		id = EVENT_MOUSEMOTION;
		deltax = dx;
		deltay = dy;
	}

	MouseWheelEvent::MouseWheelEvent( int whl )
	{
		id = EVENT_MOUSEWHEEL;
		wheel = whl;
	}

	MouseMoveEvent::MouseMoveEvent( int px, int py )
	{
		id = EVENT_MOUSEMOVE;
		posx = px;
		posy = py;
	}
};